package snooker.scoreboard;

import snooker.scoreboard.util.Utils;

public class StatisticRecord {
	
	private String name;
	private String value1;
	private String value2;
	
	public StatisticRecord(String name, String value1, String value2) {
		super();
		this.name = name;
		this.value1 = value1;
		this.value2 = value2;
	}

	public StatisticRecord(String name, int value1, int value2) {
		super();
		this.name = name;
		this.value1 = Integer.toString(value1);
		this.value2 = Integer.toString(value2);
	}
	
	public StatisticRecord(String name, double value1, double value2) {
		super();
		this.name = name;
		this.value1 = Utils.formatDouble(value1);
		this.value2 = Utils.formatDouble(value2);
	}
	
	public String getName() {
		return name;
	}

	public String getValue1() {
		return value1;
	}

	public String getValue2() {
		return value2;
	}
}
